<?php
/************************************
*   熊店
*   @file:/server/bearshop/__admin/index.php
*   @intro:
*   @author:new_shop
*   @email:new_shop@163.com    
*   @date:Sun Feb 14 22:31:54 CST 2010
************************************/

include('__global.php');

class adm_index extends admin_ctrl
{
    public function run()
    {
        
        
    }
}
$o = new adm_index();
$is_admin = $o->get_session('level') == K_ADM_LV_ADMINISTRATOR;

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录管理后台</title>
<link href="./css.css" rel="stylesheet" type="text/css">
<script>
function hideMenu()
{
    if(document.getElementById('tdMenu').style.display=='none')
        document.getElementById('tdMenu').style.display='';
    else
        document.getElementById('tdMenu').style.display='none';
}
</script>
</head>
<body>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" class="adminlist">
<!-- header -->
<tr>
  <th height="72" colspan="3" class="fonttitle"> <span style="float:right"><a href="/__admin/logout.php" class="a">退出系统</a></span><span class="f18">网站后台管理系统</span><br>
    <span class="f10"> Web background management system</span></th>
  </tr>

<tr>
  <td width="158" valign="top" id="tdMenu">
  
  <table width="150" border="0" align="center" cellpadding="0" cellspacing="0" class="adminlist">
    
  <tr><td width="912" align="center" class="td_title"><strong>首页</strong></td></tr>
  <tr><td align="center">
    <table width="100%" border="0">
      <tr><td width="100%" align="center">当前汇率：<?php echo K::config('currency_usd2cny'); ?>(<a href="/__admin/page/adm_home.php?page=update_currency" target="admin_iframe">更新</a>)</td></tr>
      <tr><td align="center"><a href="/__admin/page/adm_home.php?page=notice" target="admin_iframe">发布通知</a></td></tr>
      </table>
  </td></tr>
  <tr><td align="center" class="td_title"><strong>产品管理</strong></td></tr>
  <tr><td align="center">
    <table width="100%" border="0">
      <tr><td width="100%" align="center"><a href="/__admin/page/adm_conf_edit.php?conf=product_class" target="admin_iframe">产品分类管理</a></td></tr>
      <tr><td align="center"><a href="/__admin/page/adm_conf_edit.php?conf=material" target="admin_iframe">产品材质管理</a></td></tr>
      <tr><td align="center"><a href="/__admin/page/adm_conf_edit.php?conf=product_map" target="admin_iframe">产品产地管理</a></td></tr>
      <tr><td align="center"><a href="/__admin/page/adm_conf_edit.php?conf=common_object" target="admin_iframe">常见商品名</a></td></tr>
      <tr><td align="center"><a href="/__admin/page/adm_product.php?page=list_product" target="admin_iframe">产品管理</a></td></tr>
      <tr><td align="center"><a href="/__admin/page/adm_product.php?page=new_product" target="admin_iframe">添加新产品</a></td></tr>
      <tr><td align="center"><a href="/__admin/page/adm_product.php?page=bat_create" target="admin_iframe">批量添加新产品</a></td></tr>
      <tr><td align="center"><a href="/__admin/page/adm_product.php?page=tar_upload" target="admin_iframe">上传数据包</a></td></tr>
      </table>
  </td></tr>
  <?php if($is_admin){ ?>
  <tr><td align="center" class="td_title"><strong>用户管理</strong></td></tr>
  <tr><td align="center">
    <table width="100%" border="0">
      <tr><td width="100%" align="center"><a href="/__admin/page/adm_member.php?page=apply_list" target="admin_iframe">处理会员申请</a></td></tr>
      <tr><td align="center"><a href="/__admin/page/adm_member.php?page=list" target="admin_iframe">会员管理</a></td></tr>
      <tr><td align="center"><a href="/__admin/page/adm_member.php?page=create_member" target="admin_iframe">新建帐号</a></td></tr>
      </table>
  </td></tr>

  <tr><td align="center" class="td_title"><strong>订购管理</strong></td></tr>
  <tr><td align="center">
    <table width="100%" border="0">
      <tr><td align="center"><a href="/__admin/page/adm_product_buy.php?page=list_new" target="admin_iframe">最新预订</a></td></tr>
      <tr><td align="center"><a href="/__admin/page/adm_product_buy.php?page=list_new&stat=<?php echo K_COMMON_YES ?>" target="admin_iframe">已报价</a></td></tr>
      <tr><td align="center"><a href="/__admin/page/adm_product_buy.php?page=list_new&stat=<?php echo K_COMMON_LOCK ?>" target="admin_iframe">已卖出</a></td></tr>
      </table>
  </td></tr>
  <?php } ?>
   
  </table>
  </td>
  <td bgcolor="#ff0000;" width="10" style="background:url(/data/images/adm_sep.gif) repeat-y;"><a href="#" onclick="hideMenu();"><img src="/data/images/adm_sep.gif"/></a></td>
  <td><iframe name="admin_iframe" id="admin_iframe" src="/__admin/page/adm_home.php" width="100%" height="800px" frameborder="0"></iframe></td>
</tr>

</table>
</body>
</html>